<meta charset='utf-8'>

<br><br>2016-09-09 15:47:52===0.79115900 1473407272
<br>微信app支付统一下单

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br>生成签名：

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br>appid=wxc736450dbd14f726&attach=1&body=515学车-报名定单支付&mch_id=1377377202&nonce_str=29897732493&notify_url=http://www.515xueche.com/index.php/Home/Wxpay/appnotify&out_trade_no=201609019810157584&spbill_create_ip=127.0.0.1&total_fee=23300&trade_type=APP&key=8d38abc4ee3f1b21e753dde681d5d512

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br>参数：

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br><xml><appid><![CDATA[wxc736450dbd14f726]]></appid><mch_id>1377377202</mch_id><nonce_str>29897732493</nonce_str><body><![CDATA[515学车-报名定单支付]]></body><attach>1</attach><out_trade_no>201609019810157584</out_trade_no><total_fee>23300</total_fee><spbill_create_ip><![CDATA[127.0.0.1]]></spbill_create_ip><notify_url><![CDATA[http://www.515xueche.com/index.php/Home/Wxpay/appnotify]]></notify_url><trade_type><![CDATA[APP]]></trade_type><sign><![CDATA[EC21DD62103F078DEF0F3D579102C059]]></sign></xml>

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br>进入postXmlCurl

<br><br>2016-09-09 15:47:52===0.79515900 1473407272
<br><xml><appid><![CDATA[wxc736450dbd14f726]]></appid><mch_id>1377377202</mch_id><nonce_str>29897732493</nonce_str><body><![CDATA[515学车-报名定单支付]]></body><attach>1</attach><out_trade_no>201609019810157584</out_trade_no><total_fee>23300</total_fee><spbill_create_ip><![CDATA[127.0.0.1]]></spbill_create_ip><notify_url><![CDATA[http://www.515xueche.com/index.php/Home/Wxpay/appnotify]]></notify_url><trade_type><![CDATA[APP]]></trade_type><sign><![CDATA[EC21DD62103F078DEF0F3D579102C059]]></sign></xml>

<br><br>2016-09-09 15:47:53===0.24518500 1473407273
<br>返回结果如下：

<br><br>2016-09-09 15:47:53===0.24518500 1473407273
<br><xml><return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[OK]]></return_msg>
<appid><![CDATA[wxc736450dbd14f726]]></appid>
<mch_id><![CDATA[1377377202]]></mch_id>
<nonce_str><![CDATA[tn0bGeZREuc4Kwks]]></nonce_str>
<sign><![CDATA[F622A595379CCDD5FD18ED5BE56C5D24]]></sign>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[OUT_TRADE_NO_USED]]></err_code>
<err_code_des><![CDATA[商户订单号重复]]></err_code_des>
</xml>

<br><br>2016-09-09 15:47:53===0.24618500 1473407273
<br>结果

<br><br>2016-09-09 15:47:53===0.24618500 1473407273
<br><pre>array (
  'return_code' => 'SUCCESS',
  'return_msg' => 'OK',
  'appid' => 'wxc736450dbd14f726',
  'mch_id' => '1377377202',
  'nonce_str' => 'tn0bGeZREuc4Kwks',
  'sign' => 'F622A595379CCDD5FD18ED5BE56C5D24',
  'result_code' => 'FAIL',
  'err_code' => 'OUT_TRADE_NO_USED',
  'err_code_des' => '商户订单号重复',
)</pre>

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br>生成签名：

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br>body=515儿童基金捐款&mch_create_ip=127.0.0.1&mch_id=101560000746&nonce_str=29897732493&notify_url=http://www.515xueche.com/index.php/Home/Wxpay/notify_fund&out_trade_no=201609095710110260&service=pay.weixin.native&total_fee=3300&key=abcb8cd1e7de50abbea48375fc687d52

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br>参数：

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br><xml><service><![CDATA[pay.weixin.native]]></service><mch_id>101560000746</mch_id><out_trade_no>201609095710110260</out_trade_no><body><![CDATA[515儿童基金捐款]]></body><total_fee>3300</total_fee><mch_create_ip><![CDATA[127.0.0.1]]></mch_create_ip><notify_url><![CDATA[http://www.515xueche.com/index.php/Home/Wxpay/notify_fund]]></notify_url><nonce_str>29897732493</nonce_str><sign><![CDATA[00181BC124C95C89F617C500041F072A]]></sign></xml>

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br>进入postXmlCurl

<br><br>2016-09-09 15:56:26===0.09111600 1473407786
<br><xml><service><![CDATA[pay.weixin.native]]></service><mch_id>101560000746</mch_id><out_trade_no>201609095710110260</out_trade_no><body><![CDATA[515儿童基金捐款]]></body><total_fee>3300</total_fee><mch_create_ip><![CDATA[127.0.0.1]]></mch_create_ip><notify_url><![CDATA[http://www.515xueche.com/index.php/Home/Wxpay/notify_fund]]></notify_url><nonce_str>29897732493</nonce_str><sign><![CDATA[00181BC124C95C89F617C500041F072A]]></sign></xml>

<br><br>2016-09-09 15:56:26===0.49671700 1473407786
<br>返回结果如下：

<br><br>2016-09-09 15:56:26===0.49671700 1473407786
<br><xml><appid><![CDATA[wx8632a91376b81e24]]></appid>
<charset><![CDATA[UTF-8]]></charset>
<code_img_url><![CDATA[https://pay.swiftpass.cn/pay/qrcode?uuid=weixin://wxpay/bizpayurl?pr=EecR56n]]></code_img_url>
<code_url><![CDATA[weixin://wxpay/bizpayurl?pr=EecR56n]]></code_url>
<mch_id><![CDATA[101560000746]]></mch_id>
<nonce_str><![CDATA[EV1ReZIRUlxoPjKn]]></nonce_str>
<result_code><![CDATA[0]]></result_code>
<sign><![CDATA[70C4ED43DCB7BC308A389E8B6DB2E2C2]]></sign>
<sign_type><![CDATA[MD5]]></sign_type>
<status><![CDATA[0]]></status>
<uuid><![CDATA[eb13f182f8a3a3c7e6fb207360fe63bc]]></uuid>
<version><![CDATA[2.0]]></version>
</xml>

<br><br>2016-09-09 15:56:26===0.49671700 1473407786
<br>结果

<br><br>2016-09-09 15:56:26===0.49671700 1473407786
<br><pre>array (
  'appid' => 'wx8632a91376b81e24',
  'charset' => 'UTF-8',
  'code_img_url' => 'https://pay.swiftpass.cn/pay/qrcode?uuid=weixin://wxpay/bizpayurl?pr=EecR56n',
  'code_url' => 'weixin://wxpay/bizpayurl?pr=EecR56n',
  'mch_id' => '101560000746',
  'nonce_str' => 'EV1ReZIRUlxoPjKn',
  'result_code' => '0',
  'sign' => '70C4ED43DCB7BC308A389E8B6DB2E2C2',
  'sign_type' => 'MD5',
  'status' => '0',
  'uuid' => 'eb13f182f8a3a3c7e6fb207360fe63bc',
  'version' => '2.0',
)</pre>